package com.song.eduservice.client.ossfeign;

import com.song.eduservice.hystrix.OssHystrixFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author song
 * @data 2020/4/2
 */
@FeignClient(name = "service-oss",fallback = OssHystrixFactory.class)
@Component
public interface OosFeign {

    /**
     * 上传图片
     * @param file
     * @return
     */
    @PostMapping(value = "/eduoss/fileoss/uploadPic",consumes = "multipart/form-data")
    String uploadFileAvatar(MultipartFile file);
}
